<div id="header">
    <div id="logo"> 
		<h1><a href="<?=SITE?>content/project/index.php">Kscrum</a></h1>		
		<ul id="welcome">			
			<li>Bem vindo, <strong><?=$_SESSION["USER"]->name?></strong></li>
			<li><a href="<?=SITE?>content/config/register.php">Alterar Dados</a></li> 
			<li><a href="<?=SITE?>content/user/logoff.php">Sair</a></li> 
		</ul>		
    </div>
	<ul id="menu">		
		<li <?=(SECTION == "project")?'class="selected"':""?>><a href="<?=SITE?>content/project/index.php">Projetos<?=($_SESSION["PROJECT"]->name!=""?" (<i>".$_SESSION["PROJECT"]->name."</i>)":"")?></a></li>
		<?	
		if(isset($_SESSION["PROJECT"])){
		?>
		<li <?=(SECTION == "sprint")?'class="selected"':""?>><a href="<?=SITE?>content/sprint/index.php">Backlog/Sprints</a></li>
		<li <?=(SECTION == "kanban")?'class="selected"':""?>><a href="<?=SITE?>content/kanban/index.php">Kanban</a><span id="kabanSprint"></span></li>	
		<?
		}

		if(!in_array(SECTION,array("calendar","graphic","config","meeting","kanban")) && $_SESSION["USER_PERMISSION"] <= 2){
		?>
		<li id="menu_right">
			<a onclick="return false" href="javascript:void(0);" id="menu_filter">Filtro</a>
			<?
			if(!in_array(SECTION,array("project"))){
			?>
			<a onclick="return false" href="javascript:void(0);" id="menu_add">Adicionar</a>
			<?
			}	
			?>
		</li>
		<?
		}
		if($_SESSION["USER_PERMISSION"] <= 2){
		?>
		<li <?=(SECTION == "team")?'class="selected"':""?>><a href="<?=SITE?>content/team/index.php">Equipes</a></li>
		<?
		}
		if($_SESSION["USER_PERMISSION"] == 1){
		?>
		<li <?=(SECTION == "user")?'class="selected"':""?>><a href="<?=SITE?>content/user/index.php">Usuários</a></li>
		<?
		}
		if(isset($_SESSION["PROJECT"])){
			if($_SESSION["USER_PERMISSION"] <= 2){
		?>
		<li <?=(SECTION == "meeting")?'class="selected"':""?>><a href="<?=SITE?>content/meeting/index.php">Reuniões</a></li>
		<?
			}
		?>
		<li <?=(SECTION == "calendar")?'class="selected"':""?>><a href="<?=SITE?>content/calendar/index.php">Agenda</a></li>
		<li <?=(SECTION == "graphic")?'class="selected"':""?>><a href="<?=SITE?>content/graphic/index.php">Gráficos</a></li>
		<?
		}
		?>
		<li <?=(SECTION == "config")?'class="selected"':""?>><a href="<?=SITE?>content/config/index.php">Configurações</a></li>
	</ul>
</div>